package com.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dao.IRetToolChkDao;
import com.model.Ret_tool_chk;

@Repository
public class RetToolChkHibernateDao extends
		GenericHibernateDao<Ret_tool_chk, String> implements IRetToolChkDao {

	public List<Ret_tool_chk> getToolCheckRecordList(String tool_id_fk,
			String rep_unit_fk, String data_pat_fk, String mes_id_fk,
			String query_begin_time, String query_end_time) {
		String strHqlInParam = "from Ret_tool_chk a where id.tool_id_fk = ? and id.rep_unit_fk = ? and id.data_pat_fk = ? and id.mes_id_fk = ? "
				+ " and evt_timestamp between ? and ? ";
		List<Ret_tool_chk> ret_tool_chkList = this.find(strHqlInParam,
				new String[] { tool_id_fk, rep_unit_fk, data_pat_fk, mes_id_fk,
						query_begin_time, query_end_time });
		return ret_tool_chkList;
	}

}
